//
//  FilterAttr_TCell.swift
//  MikerShop
//
//  Created by eme on 2017/1/4.
//  Copyright © 2017年 eme. All rights reserved.
//

/*
 owner:cy
 update:2016年12月15日16:41:41
 */
import UIKit
import Kingfisher
import RxSwift
import RickonCore

class FilterAttr_TCell: UITableViewCell {
    //属性名称
    @IBOutlet weak var pavalue_Lb: UILabel!
    ///选中图片
    @IBOutlet weak var state_ImgV: UIImageView!
    
    @IBOutlet weak var separate_Line_V: UIView!
    var item :PavalueModel?{
        didSet{
            if let item = self.item {
                self.pavalue_Lb.text = item.pavalue
                if item.hasSelected {
                    self.pavalue_Lb.textColor = Theme.btn.normal
                    self.state_ImgV.image = UIImage(named: "filter-attr-selected", in: RobbCore.bundle, compatibleWith: nil)
                }else{
                    self.pavalue_Lb.textColor = UIColor(hex: "262626")
                    self.state_ImgV.image = UIImage(named: "filter-attr-unselected", in: RobbCore.bundle, compatibleWith: nil)
                }
                
            }
        }
    }
    
    override func awakeFromNib() {
        
        self.separate_Line_V.backgroundColor = Theme.v.separate_Line
    }
}
